package com.gt.self.service.impl;

import com.gt.self.domain.UsCheckPartItem;
import com.gt.self.mapper.UsCheckPartItemMapper;
import com.gt.self.service.UsCheckPartItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UsCheckPartItemServiceImpl implements UsCheckPartItemService {

    @Autowired
    private UsCheckPartItemMapper usCheckPartItemMapper;


    /**
     * 通过ID查询单条数据
     * @param itemId
     * @param partname
     * @return
     */
    @Override
    public UsCheckPartItem queryByIdCheckPartItem(String itemId, String partname) {
        return usCheckPartItemMapper.queryByIdCheckPartItem(itemId, partname);
    }

    @Override
    public int insertCheckPartItem(UsCheckPartItem usCheckpartItem) {
        return usCheckPartItemMapper.insertCheckPartItem(usCheckpartItem);
    }
}
